package stuff;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

public class DialogDisposeAction extends AbstractAction{

	private static final long serialVersionUID = 1L;
	private JFrame param;
	private JFrame parent;
	public DialogDisposeAction(JFrame paramz, JFrame parent) {
		this.param = paramz;
		this.parent = parent;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		parent.setEnabled(true);
		parent.requestFocus();
		param.dispose();
	}
	
}
